﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NLog;
using NLog.Config;
using System.Xml.Linq;
using System.Xml;

namespace Symatec.Common.Logging.Test
{
    public class TestHelper
    {
        protected XmlLoggingConfiguration CreateConfigurationFromString(string configXml)
        {

            XElement element = XElement.Parse(configXml);
            return new XmlLoggingConfiguration(element.CreateReader(), null);

            //XmlDocument doc = new XmlDocument();
            //doc.LoadXml(configXml);           
            

            //return new XmlLoggingConfiguration(doc.DocumentElement, Environment.CurrentDirectory);
        }
    }
}
